import java.util.ResourceBundle;

/**
 * ****************************************************************************
 * $Author: Yegor Chemisov $
 * $Revision: 2.2 $
 * ****************************************************************************
 */

public class MAPConsts
{
    public final static String VERSION          = "2.2";
    public final static String PROGRAMM_NAME    = "jMemory";
    public final static int NUM_IMAGES          = 52;
    public final static int MAX_RESULTS         = 10;
    public final static int NUM_LEVELS          = 5;
    public final static int HIDE_TIME           = 2000;
    public final static String[] GRID_SIZE      = {"3x4", "4x6", "5x8", "6x9"};
    public final static ResourceBundle RES = ResourceBundle.getBundle("GlobalRes");

    public static String getResultsFileName()
    {
        return getFileName(PROGRAMM_NAME +".results");
    }

    public static String getFileName(String file)
    {
        return  getUserDirectory() + file;
    }
    
    public static String getUserDirectory()
    {
        String folder = System.getProperty("user.home");
        String filesep = System.getProperty("file.separator");

        return  folder + filesep;
    }
}
